﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DB_NH.DB_Model;

namespace ZJK.Models.ExtractManage
{
    #region ViewModel抽取页面的第一步，获取项目列表页面vmStep1
    /// <summary>
    /// 抽取操作的第一步ViewModel
    /// 选取当前抽取的关联项目
    /// </summary>
    public class vmStep1
    {
        /// <summary>
        /// 项目编号，如果此参数不为空，将在过滤条件中设置
        /// </summary>
        public string projectCode { get; set; }

        /// <summary>
        /// 已选择的项目IDs，以逗号分隔
        /// </summary>
        public string[] selectedProjectIDs { get; set; }

        public vmStep1()
        {

        }
    }
    #endregion

    /// <summary>
    /// 凑趣擦偶偶的第二步ViewModel
    /// 
    /// </summary>
    public class vmStep2
    {
        /// <summary>
        /// 抽取记录所对应的项目IDs
        /// </summary>
        public List<string> selectedProjectIDs { get; set; }

        public vmStep2()
        {
            selectedProjectIDs = new List<string>();
        }
    }

    /// <summary>
    /// 抽取操作对应的项目信息
    /// </summary>
    public class vmStep1Project
    {
        /// <summary>
        /// 项目ID
        /// </summary>
        public string projectId { get; set; }

        /// <summary>
        /// 项目代码
        /// </summary>
        public string projectCode { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string projectName { get; set; }

        /// <summary>
        /// 项目对应的抽取记录
        /// </summary>
        public List<vmStep1ProjectExtractRecord> projectExtractRecords { get; set; }

        public vmStep1Project()
        {
            projectExtractRecords = new List<vmStep1ProjectExtractRecord>();
        }
    }

    /// <summary>
    /// 抽取记录的项目信息
    /// </summary>
    public class ExtractProject
    {
        /// <summary>
        /// 项目ID
        /// </summary>
        public string proj_id { get; set; }
        /// <summary>
        /// 项目代码
        /// </summary>
        public string proj_code { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string proj_name { get; set; }
    }

    /// <summary>
    /// 抽取记录的专家信息
    /// </summary>
    public class ExtractExpert
    {
        /// <summary>
        /// 专家ID
        /// </summary>
        public string exp_id { get; set; }

        /// <summary>
        /// 专家姓名
        /// </summary>
        public string exp_name { get; set; }

        /// <summary>
        /// 专家专业
        /// </summary>
        public string exp_professon { get; set; }

        /// <summary>
        /// 专家职称
        /// </summary>
        public string exp_title { get; set; }

        /// <summary>
        /// 专家工作单位
        /// </summary>
        public string exp_company { get; set; }

        /// <summary>
        /// 专家手机号码
        /// </summary>
        public string exp_mobile { get; set; }

        /// <summary>
        /// 评审专家类型
        /// </summary>
        public string exp_type { get; set; }

        /// <summary>
        /// 是否参加评审
        /// </summary>
        public int exp_isOK { get; set; }

        /// <summary>
        /// 抽取备注
        /// </summary>
        public string exp_remark { get; set; }

    }

    /// <summary>
    /// 抽取记录信息model
    /// </summary>
    public class vmExtractRecord
    {
        /// <summary>
        /// 抽取记录关联的项目列表
        /// </summary>
        public List<ExtractProject> projs { get; set; }

        /// <summary>
        /// 抽取记录中的专家列表
        /// </summary>
        public List<ExtractExpert> experts { get; set; }

        /// <summary>
        /// 抽取记录ID
        /// </summary>
        public string extractID { get; set; }

        /// <summary>
        /// 操作员
        /// </summary>
        public string OPUser { get; set; }

        /// <summary>
        /// 抽取操作时间
        /// </summary>
        public DateTime OPDate { get; set; }

        public vmExtractRecord()
        {
            projs = new List<ExtractProject>();
            experts = new List<ExtractExpert>();
        }
    }
}